package com.heima.stroke.handler.valuation;

public class StartPriceValuation implements Valuation {

    private Valuation valuation;

    public StartPriceValuation(Valuation valuation) {

        this.valuation = valuation;
    }

    float startPrice=13F;

    @Override
    public float calculation(float km) {

        float price = (valuation==null?0f:valuation.calculation(km));

        return startPrice+price;
    }
}
